package com.example.plugins

import kotlinx.serialization.Serializable

@Serializable
data class DistributorDto(
    val id: Int,
    val name: String,
    val address: String,
    val coalItems: MutableList<CoalItemDto> = mutableListOf()
)

@Serializable
data class CoalItemDto(
    var id : Int,
    val name: String,
    val price: Int
)

@Serializable
data class OrderDto(
    val id : Int,
    val destination: String,
    val user_name : String,
    val orderItemDto: MutableList<OrderItemDto> = mutableListOf()
)
@Serializable
data class OrderItemDto(
    val id : Int,
    val coal_name: String,
    val distributor_name: String,
    val amountInKg: Int,
    val price: Int
)
@Serializable
data class UserSession(val id: String, val count: Int)